#ifndef FILTER_H
#define FILTER_H

#include <QThread>
#include "datapackage.h"

class Filter:public QThread
{
    Q_OBJECT
public:
    void setPackages(QVector<DataPackage>* pData);
    void setProtocol(QString protocol);
    void run() override;


signals:
    void send(std::pair<int,int> selected);

private:
    QVector<DataPackage>* backUp;
    QString pro;
};

#endif // FILTER_H
